package com.order.enums;

public enum OrderOperationLogType {
    CREATE_ORDER((byte)1, "用户创建订单"),
    START_PAY((byte)2, "用户发起支付"),
    PAY_SUCCESS((byte)3, "用户支付成功"),
    PAY_FAIL((byte)4, "用户支付失败"),
    USER_CANCEL((byte)5, "用户取消订单"),
    SYSTEM_CANCEL((byte)6, "系统自动取消订单"),
    START_REFUND((byte)7, "用户发起退款"),
    REFUND_SUCCESS((byte)8, "用户退款成功"),
    REFUND_FAIL((byte)9, "用户退款失败"),
    ORDER_COMPLETE((byte)10, "订单完成");
    private final byte code;
    private final String message;
    OrderOperationLogType(byte code, String message) {
        this.code = code;
        this.message = message;
    }
    public byte getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
